<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEntitiesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('entities', function (Blueprint $table) {
            $table->increments('id');
            $table->string('father_name', 191)->nullable()->comment('父亲姓名');
            $table->string('father_id_code', 191)->comment('父亲身份证号码');
            $table->string('father_works', 191)->comment('父亲工作单位');
            $table->string('father_phone_number', 191)->comment('父亲手机号');
            $table->string('mother_name', 191)->nullable()->comment('母亲姓名');
            $table->string('mother_id_code', 191)->comment('母亲身份证号码');
            $table->string('mother_works', 191)->comment('母亲工作单位');
            $table->string('mother_phone_number', 191)->comment('母亲手机号');
            $table->string('family_address', 191)->nullable()->comment('家庭住址');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('entities');
    }
}
